import request from '@/utils/request'
// 热门城市
export const getHostCity = () =>
  request({
    url: '/area/hot'
  })

// 获取所有城市列表
export const getEverCity = (params) =>
  request({
    url: '/area/city',
    params
  })
// 根据城市名称查询该城市信息
export const getCityInfo = (params) =>
  request({
    url: '/area/info',
    params
  })

// 查询房源数据
export const getCityMap = (params) =>
  request({
    url: '/area/map',
    params
  })

// 查询子级城市信息
export const getSubCity = (params) =>
  request({
    url: '/area',
    params
  })
// 获取小区名称
export const getCommunity = (params) =>
  request({
    url: '/area/community',
    params
  })
